package ute.mvc.util;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;

public class HibernateUtil {
	
	@Autowired
	private static SessionFactory sessionFactory;
	
	public static void closeSession(){
		sessionFactory.getCurrentSession().close();
	}
}
